<?php
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Traits\HasUuid;

class RoleModel extends Model
{
    use HasFactory, HasUuid, SoftDeletes;

    protected $table = 'roles';

    protected $fillable = [];

    protected $hidden = ["deleted_at"];

    public function permissions(): HasMany
    {
        return $this->hasMany(RoleHasPermissionModel::class, 'role_id', 'id');
    }

}
